package com.google.code;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Defines a factory method inside a bean. The {@link BunitContext} will register new bean and alias as instance factory
 * method for each {@code @Create} method.
 * 
 * @author Leopoldo Muller
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Create {

    /**
     * @return the bean alias
     */
    String value();
}
